import Rules from './Rules';

const { COMMON_RULE, LENGTH_RULE } = Rules;

export const loginRule = {
  username: COMMON_RULE(),
  password: COMMON_RULE().concat(LENGTH_RULE(1, 20)),
};
